<%--
  Created by IntelliJ IDEA.
  User: soufiane
  Date: 17/04/11
  Time: 15:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
    <head>
        <link rel="stylesheet" type="text/css" href="<s:url value="/styles.css"/>" media="all" />

	    <title>portail etudiant</title>
    </head>

   <body>

     <div class="banner_accueil"><img src="<s:url value="/images/univ_mlv.png"/>" alt="universite marne la vallee"></div>

	<div class="menu">
		<div class="cadre">
			<ul>
				<li><a href="<s:url action='allCourses'/>">Cours</a></li>
				<li><a href="<s:url action='allTps'/>">Tps</a></li>
				<li><a href="<s:url action='allTds'/>">TD</a></li>
                <li><a href="<s:url action='allAnnales'/>">Annales</a></li>
				<li><a href="liste_cours">Annuaire</a></li>
				<li><a href="liste_cours">Emploi du temps</a></li>
				<li><a href="liste_cours">Notes</a></li>
			</ul>
		</div>
	</div>




    <div class="table" align="center">
        <h2>La liste des cours</h2>
     <%--<s:if test="%{tdList.size()>0}">    --%>
        <table border="1" align="center">
            <tr>

             <th>Nom</th>
             <th>date de l examen</th>
             <th colspan=4>Actions</th>



            </tr>
            <s:iterator value="courseList" >
                <tr>

                    <td>
                      <s:property value="name"/>
                    </td>
                    <td>
                      <s:property value="dateExamen"/>
                    </td>
                    <td>
                           <s:url action="listTdCours" var="urlTag" >
                               <s:param name="name"><s:property value="name"/> </s:param>
                            </s:url>
                           <a href="<s:property value="#urlTag" />" >Tds</a>
                    </td>
                     <td>
                           <s:url action="listTpCours" var="urlTag" >
                               <s:param name="name"><s:property value="name"/> </s:param>
                            </s:url>
                           <a href="<s:property value="#urlTag" />" >Tps</a>
                    </td>
                     <td>
                           <s:url action="listTutoCours" var="urlTag" >
                               <s:param name="name"><s:property value="name"/> </s:param>
                            </s:url>
                           <a href="<s:property value="#urlTag" />" >Annales</a>
                    </td>
                     <td>
                           <s:url action="listCourseCours" var="urlTag" >
                               <s:param name="name"><s:property value="name"/> </s:param>
                            </s:url>
                           <a href="<s:property value="#urlTag" />" >Consulter</a>
                    </td>

                </tr>
             </s:iterator>
        </table>

    <%--</s:if>--%>
      </div>

    </body>
</html>